<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp" %>

<%--<meta name="decorator" content="default"/>--%>
<script>
//    $(function () {
//        if( $("#applyTableId tr").length>1) {
//            $("#applyTableId").find("tr").eq(1).click();
//            $("#applyTableId").find("tr").eq(1).addClass("table-selected");
//        }
//    });
</script>
<div class="panel-body">
    <table class="table table-bordered mg-t datatable" id="applyTableId">
        <thead>
        <tr>
            <th>处方号</th>
            <th>申请时间</th>
            <th>类别</th>
            <th>费用/元</th>
            <th>收费状态</th>
            <th>发药状态</th>
            <th>保存状态</th>
        </tr>
        </thead>
        <tbody>
        <c:forEach items="${list}" var="apply">
            <tr onclick="applyClicks(this,'${apply.id}',this,'0')">
                <td style="display: none">${apply.id}<input type="hidden" value="${apply.implementDept}"></td>
                <td>${apply.applyOn}</td>
                <td><fmt:formatDate value="${apply.createDate}" pattern="yyyy-MM-dd"></fmt:formatDate></td>
                <td><c:if test="${apply.itemClass eq 'A'}">西药</c:if><c:if
                        test="${apply.itemClass eq 'B'}">草药</c:if></td>
                <td>${apply.totalCosts}</td>
                <td><input type="hidden"
                           value="${apply.chargeFlag}">${fns:getDictLabels(apply.chargeFlag, 'NO_CHARGE', '')} </td>
                <td>${fns:getDictLabels(apply.confirmFlag, 'YES_NO', '')}</td>
                <td><input type="hidden"
                           value="${apply.prescStatus}">${fns:getDictLabels(apply.prescStatus, 'YES_NO', '')}</td>
            </tr>
        </c:forEach>
        </tbody>
    </table>
</div>